var ZongJi = require('zongji');
var zongji = new ZongJi({ 
    host     : 'rm-bp18d2k8f68om091mo.mysql.rds.aliyuncs.com',
    user     : 'root',
    password : '*#Forke110',
    // debug: true
    
  });
var i=0
// Each change to the replication log results in an event
zongji.on('binlog', function(evt) {
	i++
	if(i<10){
	evt.dump();}
});

// Binlog must be started, optionally pass in filters
zongji.start({
	binlogNextPos:4,
    binlogName:'mysql-bin.000088',
    includeSchema:{"dyj":true},
  includeEvents: ['tablemap', 'writerows', 'updaterows', 'deleterows']
});